package com.tqjc.work;

import com.tqjc.entity.PublicResult;
import com.tqjc.entity.Task;
import com.tqjc.entity.TaskApart;

import java.util.List;

public interface CraneWork {

    void stopOfflineWork();

    void stopOnlineWork();

    void stopSplitFlowWork();

    PublicResult splitFlowStartWork(String splitFlowPath);

    PublicResult offlineStartWork(String offlinePath);

    PublicResult onlineStartWork(String onlinePath);


    public PublicResult<List<TaskApart>> getStepsByTask(Task task);


    public Runnable getNowThread();


    public void setNowThread(Runnable runnable);


    Boolean getOnlineWorking();

    void setOnlineWorking(Boolean onlineWorking);

    Boolean getOfflineWorking();

    void setOfflineWorking(Boolean offlineWorking);

    Boolean getSplitFlowWorking();

    void setSplitFlowWorking(Boolean splitFlowWorking);

    PublicResult offlineStopWork(String offlinePath);

    PublicResult splitFlowStopWork(String splitFlowPath);
}
